// File Name: fan_ctrl.h
// Author: kukukukuku~
// Date: 2024-06-27

#ifndef __FAN_CTRL_H
#define __FAN_CTRL_H

#include "at32f421.h"

#define FAN_GPIO_CRM            CRM_GPIOB_PERIPH_CLOCK
#define FAN_GPIO_PORT           GPIOB
#define FAN_GPIO_PIN            GPIO_PINS_9

#define FAN_ENA                 (1)
#define FAN_DISA                (0)

//打开Fan
void fan_on(void);

//关闭Fan
void fan_off(void);

//Fan配置
void fan_config(void);

#endif //__FAN_CTRL_H
